Doc and style improvements
[lhc/web/wiklou.git] / includes / installer / WebInstallerPage.php
index 6fa6fd6..60d4a13 100644 (file)
@@ -5,9 +5,16 @@
  */
 abstract class WebInstallerPage {
        
+       /**
+        * The WebInstaller object this WebInstallerPage belongs to.
+        * 
+        * @var WebInstaller
+        */
+       public $parent;
+       
        public abstract function execute();
        
-       public function __construct( $parent ) {
+       public function __construct( WebInstaller $parent ) {
                // TODO: This field is not defined??
                $this->parent = $parent;
        }
@@ -33,14 +40,17 @@ abstract class WebInstallerPage {
                $this->parent->output->outputWarnings();
                $s = "<div class=\"config-submit\">\n";
                $id = $this->getId();
+               
                if ( $id === false ) {
                        $s .= Xml::hidden( 'lastPage', $this->parent->request->getVal( 'lastPage' ) );
                }
+               
                if ( $continue ) {
                        // Fake submit button for enter keypress
                        $s .= Xml::submitButton( wfMsg( "config-$continue" ),
                                array( 'name' => "enter-$continue", 'style' => 'display:none' ) ) . "\n";
                }
+               
                if ( $id !== 0 ) {
                        $s .= Xml::submitButton( wfMsg( 'config-back' ),
                                array(
@@ -48,6 +58,7 @@ abstract class WebInstallerPage {
                                        'tabindex' => $this->parent->nextTabIndex()
                                ) ) . "\n";
                }
+               
                if ( $continue ) {
                        $s .= Xml::submitButton( wfMsg( "config-$continue" ),
                                array(
@@ -55,6 +66,7 @@ abstract class WebInstallerPage {
                                        'tabindex' => $this->parent->nextTabIndex(),
                                ) ) . "\n";
                }
+               
                $s .= "</div></form></div>\n";
                $this->addHTML( $s );
        }